package net.gdface.sdk.thrift;
import net.gdface.thrift.exception.client.BaseServiceRuntimeException;
import static com.google.common.base.Preconditions.*;

/**
 * 服务端抛出的 runtime 异常
 * @author guyadong
 *
 */
public class ServiceRuntimeException extends BaseServiceRuntimeException{
    private static final long serialVersionUID = 1L;

    ServiceRuntimeException(net.gdface.sdk.thrift.client.ServiceRuntimeException cause) {
        super(checkNotNull(cause,"cause is null"));
        type = cause.getType();
        message = cause.getMessage();
        causeClass = cause.getCauseClass();
        causeFields = cause.getCauseFields();
        serviceStackTraceMessage = cause.getServiceStackTraceMessage();
    }        
}